
package system.base;

import framework.core.*;

/*
	Author    :chengbiao.he
	CreateTime:2008-02-22 15:08:30
*/
public class WarehouseProductSearchEvent extends SearchEvent
{

	private String m_id = "" ; // all

	private String m_warehouse_code = "" ; // all

	private String m_default_location_code = "" ; // all

	private String m_balance_mode = "" ; // all

	private double m_min_count = Value.NULL_DOUBLE ; // all

	private double m_max_count = Value.NULL_DOUBLE ; // all

	private double m_fill_count = Value.NULL_DOUBLE ; // all

	private String m_keeper_staff_id = "" ; // all

	private String m_create_user_id = "" ; // all

	private String m_create_user = "" ; // all

	private String m_create_time = "" ; // all

	private String m_last_update_user_id = "" ; // all

	private String m_last_update_user = "" ; // all

	private String m_last_update_time = "" ; // all

	private String m_is_sync = "" ; // all

	private String m_product_id = "" ; // all
		

public WarehouseProductSearchEvent() 
{
	super();
	
	setOrderField(WarehouseProduct.ID);
		
}



	public String getId()
	{
		return m_id ;
	}
	public void setId(String v)
	{
		m_id = v;
	}

	public String getWarehouseCode()
	{
		return m_warehouse_code ;
	}
	public void setWarehouseCode(String v)
	{
		m_warehouse_code = v;
	}

	public String getDefaultLocationCode()
	{
		return m_default_location_code ;
	}
	public void setDefaultLocationCode(String v)
	{
		m_default_location_code = v;
	}

	public String getBalanceMode()
	{
		return m_balance_mode ;
	}
	public void setBalanceMode(String v)
	{
		m_balance_mode = v;
	}

	public double getMinCount()
	{
		return m_min_count ;
	}
	public void setMinCount(double v)
	{
		m_min_count = v;
	}

	public double getMaxCount()
	{
		return m_max_count ;
	}
	public void setMaxCount(double v)
	{
		m_max_count = v;
	}

	public double getFillCount()
	{
		return m_fill_count ;
	}
	public void setFillCount(double v)
	{
		m_fill_count = v;
	}

	public String getKeeperStaffId()
	{
		return m_keeper_staff_id ;
	}
	public void setKeeperStaffId(String v)
	{
		m_keeper_staff_id = v;
	}

	public String getCreateUserId()
	{
		return m_create_user_id ;
	}
	public void setCreateUserId(String v)
	{
		m_create_user_id = v;
	}

	public String getCreateUser()
	{
		return m_create_user ;
	}
	public void setCreateUser(String v)
	{
		m_create_user = v;
	}

	public String getCreateTime()
	{
		return m_create_time ;
	}
	public void setCreateTime(String v)
	{
		m_create_time = v;
	}

	public String getLastUpdateUserId()
	{
		return m_last_update_user_id ;
	}
	public void setLastUpdateUserId(String v)
	{
		m_last_update_user_id = v;
	}

	public String getLastUpdateUser()
	{
		return m_last_update_user ;
	}
	public void setLastUpdateUser(String v)
	{
		m_last_update_user = v;
	}

	public String getLastUpdateTime()
	{
		return m_last_update_time ;
	}
	public void setLastUpdateTime(String v)
	{
		m_last_update_time = v;
	}

	public String getIsSync()
	{
		return m_is_sync ;
	}
	public void setIsSync(String v)
	{
		m_is_sync = v;
	}

	public String getProductId()
	{
		return m_product_id ;
	}
	public void setProductId(String v)
	{
		m_product_id = v;
	}
		



	public String viewId() throws Exception
	{
		return Value.view(getId());
	}

	public String viewWarehouseCode() throws Exception
	{
		return Value.view(getWarehouseCode());
	}

	public String viewDefaultLocationCode() throws Exception
	{
		return Value.view(getDefaultLocationCode());
	}

	public String viewBalanceMode() throws Exception
	{
		return Value.view(getBalanceMode());
	}

	public String viewMinCount() throws Exception
	{
		return Value.view(getMinCount());
	}

	public String viewMaxCount() throws Exception
	{
		return Value.view(getMaxCount());
	}

	public String viewFillCount() throws Exception
	{
		return Value.view(getFillCount());
	}

	public String viewKeeperStaffId() throws Exception
	{
		return Value.view(getKeeperStaffId());
	}

	public String viewCreateUserId() throws Exception
	{
		return Value.view(getCreateUserId());
	}

	public String viewCreateUser() throws Exception
	{
		return Value.view(getCreateUser());
	}

	public String viewCreateTime() throws Exception
	{
		return Value.view(getCreateTime());
	}

	public String viewLastUpdateUserId() throws Exception
	{
		return Value.view(getLastUpdateUserId());
	}

	public String viewLastUpdateUser() throws Exception
	{
		return Value.view(getLastUpdateUser());
	}

	public String viewLastUpdateTime() throws Exception
	{
		return Value.view(getLastUpdateTime());
	}

	public String viewIsSync() throws Exception
	{
		return Value.view(getIsSync());
	}

	public String viewProductId() throws Exception
	{
		return Value.view(getProductId());
	}


	public Conditions toConditions() throws Exception
	{
		Conditions c = super.toConditions();

	c.add(getCondition(WarehouseProduct.ID,getId()));

	c.add(getCondition(WarehouseProduct.WAREHOUSE_CODE,getWarehouseCode()));

	c.add(getCondition(WarehouseProduct.DEFAULT_LOCATION_CODE,getDefaultLocationCode()));

	c.add(getCondition(WarehouseProduct.BALANCE_MODE,getBalanceMode()));

	c.add(getCondition(WarehouseProduct.MIN_COUNT,getMinCount()));

	c.add(getCondition(WarehouseProduct.MAX_COUNT,getMaxCount()));

	c.add(getCondition(WarehouseProduct.FILL_COUNT,getFillCount()));

	c.add(getCondition(WarehouseProduct.KEEPER_STAFF_ID,getKeeperStaffId()));

	c.add(getCondition(WarehouseProduct.CREATE_USER_ID,getCreateUserId()));

	c.add(getCondition(WarehouseProduct.CREATE_USER,getCreateUser()));

	c.add(getCondition(WarehouseProduct.CREATE_TIME,getCreateTime()));

	c.add(getCondition(WarehouseProduct.LAST_UPDATE_USER_ID,getLastUpdateUserId()));

	c.add(getCondition(WarehouseProduct.LAST_UPDATE_USER,getLastUpdateUser()));

	c.add(getCondition(WarehouseProduct.LAST_UPDATE_TIME,getLastUpdateTime()));

	c.add(getCondition(WarehouseProduct.IS_SYNC,getIsSync()));

	c.add(getCondition(WarehouseProduct.PRODUCT_ID,getProductId()));
		

			
		return c ;
	}
	
//add by chengbiao.he start

//add by chengbiao.he end
}
